package org.neuedu.chapter06_0621.demo07;

public class Test {
    int x;
    int y;

    public Test(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public Test() {
    }

    public void add() {
        System.out.println(x+y);
    }

    public void multi() {
        System.out.println(x-y);
    }

    public static void main(String[] args) {
        Test test = new Test(10,20);
        test.add();
        test.multi();
    }
}
